<template>
	<view class="p30">
		<view class="radius20 bg-fff p20">
			<u-empty v-if="!list.length" ></u-empty>
			<view class="" v-for="(item,index) in list" :key="index">
				<view class="fw-w mb20 tit-ac pt20">{{item.content}}</view>
				<view class="flex p20">
					<image :src="item.avatar" class="w80 h80" mode=""></image>
					<view class="">{{item.name}}</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				page: 1
			};
		},
		onShow() {
			this.getList()
		},
		onReachBottom() {
			this.getList('down')
		},
		methods: {
			getList(e) {
				e == 'down' ? this.page++ : this.page = 1
				let params = {
					page: this.page,
				}
				this.$request('/master/agency/historyLog', params).then(res => {
					let list = res.data.data
					e == 'down' ? this.list.push(...list) : this.list = list
				})
			},
		}
	}
</script>

<style>

</style>